<?php
/**
 * Side Box Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_categories.php 4162 2006-08-17 03:55:02Z ajeh $
 */
  $content = "";
  
  $content .= '<div class="category_sideboxes">' . "\n";
  if ($sideboxes_categoryies->RecordCount()>0){
  	  $have_subchildren = true;
  	  if (!empty($c_chain))
  	  	$prePath = implode('_', $c_chain).'_';
  	  else 
  	  	$prePath = '';	
  	  $content .= '<ul>';
	  while (!$sideboxes_categoryies->EOF){
	  	if ($current_c_id==$sideboxes_categoryies->fields['categories_id']){
	  		$content .= '<li class="current_category">'.$sideboxes_categoryies->fields['categories_name'].'</li>';
	  		$have_subchildren = false;
	  	}else
	  		$content .= '<li><a href="'.zen_href_link(FILENAME_DEFAULT, 'cPath=' . $prePath.$sideboxes_categoryies->fields['categories_id']).'">'.$sideboxes_categoryies->fields['categories_name'].'</a></li>';
		$sideboxes_categoryies->MoveNext();
	  }
	  $content .= '</ul>';
  }
  $content .= '</div>';
?>